<?php

return [
    //后台用户
    'member' => [
        'regtime' => NOW_TIME,
        'password' => ['pwHash','callback'],
        '__option__' => [
            'scene' => [
                'add' => ['regtime','password'],
                'edit' => ['password']
            ]
        ]
    ],
    //后台新闻
    'news' => [
        'postdate' => NOW_TIME,
        'uid' => ['get_member_id','callback'],
        '__option__' => [
            'scene' => [
                'add' => ['postdate','uid'],
                'edit' => ['uid']
            ]
        ]
    ],
    //后台广告
    'adad' => [
        'created' => NOW_TIME,
        'updated' => NOW_TIME,
        'uid' => ['get_member_id','callback'],
        '__option__' => [
            'scene' => [
                'add' => ['created','uid'],
                'edit' => ['updated','uid']
            ]
        ]
    ],
    //后台供应商
    'supplier' => [
        'dateline' => NOW_TIME,
        'user_id' => ['get_member_id','callback'],
        '__option__' => [
            'scene' => [
                'add' => ['dateline','user_id'],
                'edit' => ['user_id']
            ]
        ]
    ],
     //后台线路
    'tours' => [
        'dateline' => NOW_TIME,
        'uid' => ['get_member_id','callback'],
        '__option__' => [
            'scene' => [
                'add' => ['dateline','uid'],
                'edit' => ['dateline','uid']
            ]
        ]
    ],
     //后台aboutus
    'aboutus' => [
        'postdate' => NOW_TIME,
        'modifydate' => NOW_TIME,
        'mname' => ['get_member_mname','callback'],
        '__option__' => [
            'scene' => [
                'add' => ['postdate','mname'],
                'edit' => ['modifydate','mname']
            ]
        ]
    ],
    //后台评论
    'comment' => [
        'update_time' => NOW_TIME,
        '__option__' => [
            'scene' => [
                'add' => ['update_time'],
                'edit' => ['update_time']
            ]
        ]
    ],
    //前台会员
    'user' => [
        'password' => ['pwSha','callback'],
        'username' => '新会员',
        'regedit_time' => NOW_TIME,
        'login_time'=> NOW_TIME,
        'regedit_ip'=>['get_client_ip','callback'],
        'login_ip'=>['get_client_ip','callback'],
        '__option__' => [
            'scene' => [
                'add' => ['regedit_time','password','regedit_time','login_time','regedit_ip','login_ip'],
                'edit' => ['login_ip','login_time']
            ]
        ]
    ]
];
